<template>
    <div class="box">
        <h4>登录页</h4>
        <p v-show="$route.params.msg">{{ $route.params.msg }}</p>
        <!-- <input type="button" value="模拟登录" @click=" $router.back() "> -->
        <input type="button" value="模拟登录" @click="dologin()">
    </div>
</template>

<script>
export default {
    methods:{
        dologin(){
            sessionStorage.setItem("token","asdasdasdasd");
            this.$router.push({
                name:this.$route.params.path||"home"
            })
        }
    }
}
</script>

<style scoped>
.box{
    min-height: 400px;
    border: 4px dashed #ccc;
}
</style>